package com.tool;

import android.text.format.Time;

public class Date {

	public static String  GetNowTime() {
		Time t=new Time("GMT+8");
		t.setToNow();
		int year = t.year;
		int month = t.month;
		int date = t.monthDay;
		int hour = t.hour;    // 0-23
		int minute = t.minute;
		int second = t.second;
		return String.valueOf(year)+String.valueOf(month)+String.valueOf(date)+String.valueOf(hour)+String.valueOf(minute)+String.valueOf(second);
	}
	
}
